package com.cskaoyan.wx.controller;


import com.cskaoyan.vo.BaseRespVo;

import com.cskaoyan.wx.bo.AuthloginBo;
import com.cskaoyan.wx.vo.WxLoginVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController()
@RequestMapping("wx/auth")
public class WxAuthController {

    /**
     * 假装登入,功能未完善
     */
    @RequestMapping("login")
    public BaseRespVo login(@RequestBody AuthloginBo authloginBo){
        WxLoginVo wxLoginVo = new WxLoginVo();
        WxLoginVo.UserInfoBean userInfo = wxLoginVo.getUserInfo();
        wxLoginVo.setUserInfo(userInfo);
        wxLoginVo.setTokenExpire("2021-04-13T10:35:13.999");
        wxLoginVo.setToken("dsdsdskdkdskdkk");
        return BaseRespVo.ok(wxLoginVo);
    }
}
